<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" import="com.dong.*" %>
<html>
<head>
    <title>listAllOrders</title>
</head>
<body>
<table border="1" align="center" width="800px">
    <tr>
        <td>订单号</td>
        <td>账号</td>
        <td>姓名</td>
        <td>订单名称</td>
        <td>订单日期</td>
        <td>订单金额</td>

    </tr>
<%--    不能用pageScope.listOrders,不懂--%>
    <c:forEach items="${listOrders}" var="order" >
    <tr>
        <td>${order.o_id}</td>
        <td>${order.account.id}</td>
        <td>${order.account.name}</td>
        <td>${order.o_name}</td>
        <td><fmt:formatDate value="${order.o_date}" type="both"/></td>
        <td>${order.o_money}</td>

    </tr>
    </c:forEach>
</table>
</body>
</html>
